GDK-Win32: Avoid Redefinition of _GDK_EXTERN
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 30 May 2013 08:07:31 +0000 (16:07 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 31 May 2013 04:01:26 +0000 (12:01 +0800)
Include config.h first so that _GDK_EXTERN may be defined once
and only once during the build, so that we do not get warnings/
errors for macro redefinition.

https://bugzilla.gnome.org/show_bug.cgi?id=701251

gdk/win32/gdkkeys-win32.c
gdk/win32/gdktestutils-win32.c

index 97034899a5a3fa072d8670855c1b28f33d9bb66f..48590f9532ebdf31c55804f8b29ef01705eb4cd9 100644 (file)
@@ -21,6 +21,8 @@
  * files for a list of changes.  These files are distributed with
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
+#include "config.h"
+
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -36,8 +38,6 @@
 #include "gdkkeysprivate.h"
 #include "gdkwin32keys.h"
 
-#include "config.h"
-
 struct _GdkWin32KeymapClass
 {
   GdkKeymapClass parent_class;
index a4a643f30df2c0387b90e31f596ee9445ffaa075..e1e574a36a3dca042d070a3e430a6342e8629c11 100644 (file)
@@ -15,6 +15,8 @@
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
+#include "config.h"
+
 #include <gdk/gdktestutils.h>
 #include <gdk/gdkkeysyms.h>
 #include <win32/gdkwin32.h>